Optimal. Leaf size=121 \[ -\frac {3}{8 a^3 \left (1-a^2 x^2\right )}+\frac {3 x \tanh ^{-1}(a x)}{4 a^2 \left (1-a^2 x^2\right )}+\frac {3 \tanh ^{-1}(a x)^2}{8 a^3}-\frac {3 \tanh ^{-1}(a x)^2}{4 a^3 \left (1-a^2 x^2\right )}+\frac {x \tanh ^{-1}(a x)^3}{2 a^2 \left (1-a^2 x^2\right )}-\frac {\tanh ^{-1}(a x)^4}{8 a^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 121, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {6147, 6141,
6103, 267} \begin {gather*} -\frac {\tanh ^{-1}(a x)^4}{8 a^3}+\frac {3 \tanh ^{-1}(a x)^2}{8 a^3}+\frac {x \tanh ^{-1}(a x)^3}{2 a^2 \left (1-a^2 x^2\right )}+\frac {3 x \tanh ^{-1}(a x)}{4 a^2 \left (1-a^2 x^2\right )}-\frac {3}{8 a^3 \left (1-a^2 x^2\right )}-\frac {3 \tanh ^{-1}(a x)^2}{4 a^3 \left (1-a^2 x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 267
Rule 6103
Rule 6141
Rule 6147
Rubi steps
\begin {align*} \int \frac {x^2 \tanh ^{-1}(a x)^3}{\left (1-a^2 x^2\right )^2} \, dx &=\frac {x \tanh ^{-1}(a x)^3}{2 a^2 \left (1-a^2 x^2\right )}-\frac {\tanh ^{-1}(a x)^4}{8 a^3}-\frac {3 \int \frac {x \tanh ^{-1}(a x)^2}{\left (1-a^2 x^2\right )^2} \, dx}{2 a}\\ &=-\frac {3 \tanh ^{-1}(a x)^2}{4 a^3 \left (1-a^2 x^2\right )}+\frac {x \tanh ^{-1}(a x)^3}{2 a^2 \left (1-a^2 x^2\right )}-\frac {\tanh ^{-1}(a x)^4}{8 a^3}+\frac {3 \int \frac {\tanh ^{-1}(a x)}{\left (1-a^2 x^2\right )^2} \, dx}{2 a^2}\\ &=\frac {3 x \tanh ^{-1}(a x)}{4 a^2 \left (1-a^2 x^2\right )}+\frac {3 \tanh ^{-1}(a x)^2}{8 a^3}-\frac {3 \tanh ^{-1}(a x)^2}{4 a^3 \left (1-a^2 x^2\right )}+\frac {x \tanh ^{-1}(a x)^3}{2 a^2 \left (1-a^2 x^2\right )}-\frac {\tanh ^{-1}(a x)^4}{8 a^3}-\frac {3 \int \frac {x}{\left (1-a^2 x^2\right )^2} \, dx}{4 a}\\ &=-\frac {3}{8 a^3 \left (1-a^2 x^2\right )}+\frac {3 x \tanh ^{-1}(a x)}{4 a^2 \left (1-a^2 x^2\right )}+\frac {3 \tanh ^{-1}(a x)^2}{8 a^3}-\frac {3 \tanh ^{-1}(a x)^2}{4 a^3 \left (1-a^2 x^2\right )}+\frac {x \tanh ^{-1}(a x)^3}{2 a^2 \left (1-a^2 x^2\right )}-\frac {\tanh ^{-1}(a x)^4}{8 a^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 72, normalized size = 0.60 \begin {gather*} \frac {3-6 a x \tanh ^{-1}(a x)+3 \left (1+a^2 x^2\right ) \tanh ^{-1}(a x)^2-4 a x \tanh ^{-1}(a x)^3+\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^4}{8 a^3 \left (-1+a^2 x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 144.89, size = 1357, normalized size = 11.21
method | result | size |
risch | \(-\frac {\ln \left (a x +1\right )^{4}}{128 a^{3}}+\frac {\left (x^{2} \ln \left (-a x +1\right ) a^{2}-2 a x -\ln \left (-a x +1\right )\right ) \ln \left (a x +1\right )^{3}}{32 a^{3} \left (a^{2} x^{2}-1\right )}-\frac {3 \left (a^{2} x^{2} \ln \left (-a x +1\right )^{2}-2 a^{2} x^{2}-4 a x \ln \left (-a x +1\right )-\ln \left (-a x +1\right )^{2}-2\right ) \ln \left (a x +1\right )^{2}}{64 a^{3} \left (a x -1\right ) \left (a x +1\right )}+\frac {\left (a^{2} x^{2} \ln \left (-a x +1\right )^{3}-6 x^{2} \ln \left (-a x +1\right ) a^{2}-6 a \ln \left (-a x +1\right )^{2} x -\ln \left (-a x +1\right )^{3}-12 a x -6 \ln \left (-a x +1\right )\right ) \ln \left (a x +1\right )}{32 a^{3} \left (a x -1\right ) \left (a x +1\right )}-\frac {a^{2} x^{2} \ln \left (-a x +1\right )^{4}-12 a^{2} x^{2} \ln \left (-a x +1\right )^{2}-8 a x \ln \left (-a x +1\right )^{3}-\ln \left (-a x +1\right )^{4}-48 a x \ln \left (-a x +1\right )-12 \ln \left (-a x +1\right )^{2}-48}{128 a^{3} \left (a x -1\right ) \left (a x +1\right )}\) | \(336\) |
derivativedivides | \(\text {Expression too large to display}\) | \(1357\) |
default | \(\text {Expression too large to display}\) | \(1357\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 465 vs.
\(2 (105) = 210\).
time = 0.30, size = 465, normalized size = 3.84 \begin {gather*} -\frac {1}{4} \, {\left (\frac {2 \, x}{a^{4} x^{2} - a^{2}} + \frac {\log \left (a x + 1\right )}{a^{3}} - \frac {\log \left (a x - 1\right )}{a^{3}}\right )} \operatorname {artanh}\left (a x\right )^{3} + \frac {3 \, {\left ({\left (a^{2} x^{2} - 1\right )} \log \left (a x + 1\right )^{2} - 2 \, {\left (a^{2} x^{2} - 1\right )} \log \left (a x + 1\right ) \log \left (a x - 1\right ) + {\left (a^{2} x^{2} - 1\right )} \log \left (a x - 1\right )^{2} + 4\right )} a \operatorname {artanh}\left (a x\right )^{2}}{16 \, {\left (a^{6} x^{2} - a^{4}\right )}} + \frac {1}{128} \, {\left (\frac {{\left ({\left (a^{2} x^{2} - 1\right )} \log \left (a x + 1\right )^{4} - 4 \, {\left (a^{2} x^{2} - 1\right )} \log \left (a x + 1\right )^{3} \log \left (a x - 1\right ) + {\left (a^{2} x^{2} - 1\right )} \log \left (a x - 1\right )^{4} - 6 \, {\left (2 \, a^{2} x^{2} - {\left (a^{2} x^{2} - 1\right )} \log \left (a x - 1\right )^{2} - 2\right )} \log \left (a x + 1\right )^{2} - 12 \, {\left (a^{2} x^{2} - 1\right )} \log \left (a x - 1\right )^{2} - 4 \, {\left ({\left (a^{2} x^{2} - 1\right )} \log \left (a x - 1\right )^{3} - 6 \, {\left (a^{2} x^{2} - 1\right )} \log \left (a x - 1\right )\right )} \log \left (a x + 1\right ) + 48\right )} a^{2}}{a^{8} x^{2} - a^{6}} - \frac {8 \, {\left ({\left (a^{2} x^{2} - 1\right )} \log \left (a x + 1\right )^{3} - 3 \, {\left (a^{2} x^{2} - 1\right )} \log \left (a x + 1\right )^{2} \log \left (a x - 1\right ) - {\left (a^{2} x^{2} - 1\right )} \log \left (a x - 1\right )^{3} + 12 \, a x - 3 \, {\left (2 \, a^{2} x^{2} - {\left (a^{2} x^{2} - 1\right )} \log \left (a x - 1\right )^{2} - 2\right )} \log \left (a x + 1\right ) + 6 \, {\left (a^{2} x^{2} - 1\right )} \log \left (a x - 1\right )\right )} a \operatorname {artanh}\left (a x\right )}{a^{7} x^{2} - a^{5}}\right )} a \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 114, normalized size = 0.94 \begin {gather*} -\frac {8 \, a x \log \left (-\frac {a x + 1}{a x - 1}\right )^{3} + {\left (a^{2} x^{2} - 1\right )} \log \left (-\frac {a x + 1}{a x - 1}\right )^{4} + 48 \, a x \log \left (-\frac {a x + 1}{a x - 1}\right ) - 12 \, {\left (a^{2} x^{2} + 1\right )} \log \left (-\frac {a x + 1}{a x - 1}\right )^{2} - 48}{128 \, {\left (a^{5} x^{2} - a^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} \operatorname {atanh}^{3}{\left (a x \right )}}{\left (a x - 1\right )^{2} \left (a x + 1\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.71, size = 410, normalized size = 3.39 \begin {gather*} \frac {3\,{\ln \left (a\,x+1\right )}^2}{32\,a^3}-\frac {3\,{\ln \left (a\,x+1\right )}^2}{16\,\left (a^3-a^5\,x^2\right )}+\frac {3\,{\ln \left (1-a\,x\right )}^2}{32\,a^3}-\frac {{\ln \left (a\,x+1\right )}^4}{128\,a^3}-\frac {{\ln \left (1-a\,x\right )}^4}{128\,a^3}-\frac {3\,{\ln \left (1-a\,x\right )}^2}{16\,a^3-16\,a^5\,x^2}-\frac {3}{2\,\left (4\,a^3-4\,a^5\,x^2\right )}-\frac {x\,{\ln \left (1-a\,x\right )}^3}{2\,\left (8\,a^2-8\,a^4\,x^2\right )}-\frac {3\,\ln \left (a\,x+1\right )\,\ln \left (1-a\,x\right )}{16\,a^3}+\frac {3\,\ln \left (a\,x+1\right )\,\ln \left (1-a\,x\right )}{8\,a^3-8\,a^5\,x^2}+\frac {3\,x\,\ln \left (a\,x+1\right )}{8\,\left (a^2-a^4\,x^2\right )}+\frac {\ln \left (a\,x+1\right )\,{\ln \left (1-a\,x\right )}^3}{32\,a^3}+\frac {{\ln \left (a\,x+1\right )}^3\,\ln \left (1-a\,x\right )}{32\,a^3}-\frac {6\,x\,\ln \left (1-a\,x\right )}{16\,a^2-16\,a^4\,x^2}+\frac {x\,{\ln \left (a\,x+1\right )}^3}{16\,\left (a^2-a^4\,x^2\right )}-\frac {3\,{\ln \left (a\,x+1\right )}^2\,{\ln \left (1-a\,x\right )}^2}{64\,a^3}+\frac {6\,x\,\ln \left (a\,x+1\right )\,{\ln \left (1-a\,x\right )}^2}{32\,a^2-32\,a^4\,x^2}-\frac {6\,x\,{\ln \left (a\,x+1\right )}^2\,\ln \left (1-a\,x\right )}{32\,a^2-32\,a^4\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________